package net.oschina.git.zengzhihao.two;

import java.util.ArrayList;
import java.util.List;

/**
 * 生成数工具
 * 
 * @author zengzhihao
 */
public class RandUtil {

	public static List<JCB> generator() {
		List<JCB> jcbs = new ArrayList<JCB>();

		JCB j1 = new JCB();
		j1.setName("JOB1");
		j1.setArrivalTime(0);
		j1.setServiceTime(40);
		j1.setPriority(5);
		j1.setStatus("R");
		jcbs.add(j1);

		JCB j2 = new JCB();
		j2.setName("JOB2");
		j2.setArrivalTime(20);
		j2.setServiceTime(30);
		j2.setPriority(4);
		j2.setStatus("R");
		jcbs.add(j2);

		JCB j3 = new JCB();
		j3.setName("JOB3");
		j3.setArrivalTime(30);
		j3.setServiceTime(50);
		j3.setPriority(3);
		j3.setStatus("R");
		jcbs.add(j3);

		JCB j4 = new JCB();
		j4.setName("JOB4");
		j4.setArrivalTime(50);
		j4.setServiceTime(20);
		j4.setPriority(6);
		j4.setStatus("R");
		jcbs.add(j4);

		return jcbs;
	}

}
